<?php

class backendConfiguration extends sfApplicationConfiguration
{
  public function configure()
  {
  }
  
  public function initialize() {
    $this->registerEventListener();
  }
  
  private function registerEventListener() {
    $this->dispatcher->connect(WildliveEventInterface::ORGANIZATIONAL_UNIT_ELECTIVE_OFFICE_ASSIGNMENT_CHANGED, array(new UserPermissionAssignmentListener(), 'listenToOrganizationalUnitElectiveOfficeAssignmentChangedEvent'));
  }
  
  public function configureDoctrine(Doctrine_Manager $manager) {
    $manager->registerHydrator(OrganizationalPropertyAssignmentAggregationHydrator::IDENTIFIER, 'OrganizationalPropertyAssignmentAggregationHydrator');
  }
}
